package ThreadDemo;

public class ThreadDemo04 {
    public static void main(String[] args) {
        Thread t=new Thread(()->{
            System.out.println("我是一个线程");
            while(true){

            }
        },"这是线程的名字");
        t.start();
    }
}
